<!DOCTYPE html>
<html>
<body>
<h1 id="a">Before</h1>
<div id="d" style="display:none">Description</div>
<script>
  function go() {
    document.getElementById('a').setAttribute('aria-describedby', 'd');
  }
</script>
</body>
</html>
